#include "ASComponent.h"

NS_AS_BEGIN

ASComponentNameInstance(ASComponent);

ASComponent::ASComponent()
:_pHolder(nullptr)
,_bActive(true)
,_bMerge(false)
,_bUpdateMatch(false)
,_fUpdateTick(0.0f)
,_fTimeCoefficient(1)
{
}

ASComponent::~ASComponent()
{
}

void ASComponent::setHolder(ASEntity* holder)
{
	if(_pHolder==nullptr)
	{
		_pHolder = holder;
	}
	else
	{
		ASAssert(0,"already had holder");
	}
}

NS_AS_END